package com.glueball.crm.module.client.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@XmlAccessorType(XmlAccessType.NONE)
@XmlRootElement(name = "bankaccount")
@Document(collection="bankaccounts")
public class BankAccount {

    @XmlAttribute
    @Id
    private String id;
    private String accountId;
    private String iban;
    private String countryCode;
    private String swiftCode;
    private String bankName;
    private boolean active = true;
    private boolean securityDeposit;
    private boolean outgoingTransfer;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIban() {
        return iban;
    }

    public void setIban(String iban) {
        this.iban = iban;
    }

    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }

    public String getSwiftCode() {
        return swiftCode;
    }

    public void setSwiftCode(String swiftCode) {
        this.swiftCode = swiftCode;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public boolean isSecurityDeposit() {
        return securityDeposit;
    }

    public void setSecurityDeposit(boolean securityDeposit) {
        this.securityDeposit = securityDeposit;
    }

    public boolean isOutgoingTransfer() {
        return outgoingTransfer;
    }

    public void setOutgoingTransfer(boolean outgoingTransfer) {
        this.outgoingTransfer = outgoingTransfer;
    }
}
